﻿using PSI.Models.DModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PSI.DAL
{
        public  class UnitDAL:BaseDAL<UnitInfoModel>
        {
                /// <summary>
                /// 获取指定类别的单位信息列表
                /// </summary>
                /// <param name="typeId"></param>
                /// <returns></returns>
                public List<UnitInfoModel> GetUnitInfosByTypeId(int typeId)
                {
                        return GetModelList($"IsDeleted=0 and UTypeId={typeId}", "UnitId,UnitName,UnitNo");
                }
        }
}
